import UIKit

var greeting = "Hello, playground"

class test {
    static var numberOfRequests: Int = 0 {
        didSet {
            print(numberOfRequests)
            
            if numberOfRequests > 1 {
                print(numberOfRequests)
                return
            }
            
            print(numberOfRequests > 0)
        }
    }
    
    func add(){
        test.numberOfRequests += 1
    }
    
    func desc() {
        test.numberOfRequests -= 1
    }
}

let t = test()

t.add()
t.add()
t.desc()
t.desc()
